import { getBannerAPI } from '@/apis/home'
import { ref } from 'vue'

export const useBanner = () => {
  // 获取banner
  const bannelList = ref([])
  const getBannelList = async () => {
    const res = await getBannerAPI({ distributionSite: 2 })
    bannelList.value = res.data.result
  }
  getBannelList()
  return {
    bannelList
  }
}